package com.gump.essay.demo.design.zszms;

/**
 * 猕猴桃装饰器
 *
 * @auther zzc
 * @date 2020/12/9 14:48
 */
public class KiwiDecorator extends AbstractDecorator {

    public KiwiDecorator(AbstractFruitSalad fruitSalad) {
        super(fruitSalad);
    }

    @Override
    public String remark() {
        return super.remark()+"加个猕猴桃\n";
    }

    @Override
    public int price() {
        return super.price()+2;
    }
}
